package com.xzan.medusa.dal.mapper;

import com.xzan.medusa.dal.model.StockStrategyDO;
import com.xzan.medusa.dal.query.StockStrategyQuery;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
 * MyBatis Mapper for StockStrategy.
 */
 @Mapper
 @Repository
public interface StockStrategyMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(StockStrategyQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(StockStrategyQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(StockStrategyDO record);

    /**
     * insert selective.
     */
    int insertSelective(StockStrategyDO record);

    /**
     * batch insert.
     */
    int batchInsert(List<StockStrategyDO> records);

    /**
     * select by query condition.
     */
    List<StockStrategyDO> selectByQuery(StockStrategyQuery query);

    /**
     * select by primary key.
     */
    StockStrategyDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") StockStrategyDO record, @Param("query") StockStrategyQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") StockStrategyDO record, @Param("query") StockStrategyQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(StockStrategyDO record);
}